home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWResour / Include / SLResSin.idl < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.8 KB  |  92 lines  |  [TEXT/MPS ]

  1. //
  2. //
  3. //    File:                SLResSin.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //
  9.  
  10. #ifndef SLRESSIN_H
  11. #define SLRESSIN_H
  12.  
  13. #ifndef FWENVDEF_IDL
  14. #include "FWEnvDef.idl"
  15. #endif
  16.  
  17. #ifndef SLRANSIN_IDL
  18. #include "SLRanSin.idl"
  19. #endif
  20.  
  21. #include <somobj.idl>
  22. #include <somcls.idl>
  23.  
  24.  
  25. //==============================================================================
  26. // Classes defined in this interface
  27. //==============================================================================
  28.  
  29. interface   FW_OResourceSink;
  30.  
  31.  
  32. //==============================================================================
  33. // Classes used by this interface
  34. //==============================================================================
  35.  
  36. interface   FW_ORandomAccessSink;
  37. interface    FW_OResource;
  38.  
  39.  
  40. //==============================================================================
  41. // Types used by this interface
  42. //==============================================================================
  43.  
  44. typedef somToken FW_CPrivResSinRep;
  45.  
  46.  
  47. //========================================================================================
  48. // FW_OResourceSink
  49. //========================================================================================
  50.  
  51. interface FW_OResourceSink : FW_ORandomAccessSink
  52. {
  53.     void InitFromOResource(in FW_OResource theResource);
  54.     
  55. #ifdef __SOMIDL__
  56.     implementation
  57.     {
  58.         functionprefix = "FW_OResourceSink__";
  59.  
  60.         override:
  61.             somInit,
  62.             somUninit,
  63.  
  64.             Read,
  65.             GetWritableBytes,
  66.             Write,
  67.             GetLength,
  68.             SetLength,
  69.             GetPosition,
  70.             SetPosition;
  71.  
  72.         releaseorder:
  73.             InitFromOResource;
  74.  
  75.         majorversion = 1;
  76.         minorversion = 0;
  77.  
  78.         passthru C_xh =
  79.             "";
  80.  
  81.         passthru C_xih =
  82.             "";
  83.  
  84. #ifdef __PRIVATE__
  85.         FW_CPrivResSinRep* fRep;
  86. #endif
  87.     };
  88. #endif
  89. };
  90.  
  91. #endif
  92.